package com.example.waibao.controller;

import com.example.waibao.Component.UserHelper;
import com.example.waibao.entity.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class advertisementController {


    @Autowired
    private UserHelper userHelper;

    //设置广告选择项
    @GetMapping("set_advertisement")
    public ResponseResult setAdvertisement(String the_type, String the_grade,
                                           String the_number) {


        ResponseResult result = new ResponseResult(200, "广告设置成功");
        return result;
    }

    //审核广告的投递
    @GetMapping("check_advertisement")
    public ResponseResult checkAdvertisement(String the_type, String the_grade,
                                             String the_number) {
        ResponseResult result = new ResponseResult(200, "审核成功");
        return result;
    }

    //获取要审核的广告消息，分页
    @GetMapping("get_advertisement")
    public ResponseResult getAdvertisement(String the_type, String the_grade,
                                           String the_number) {


        ResponseResult result = new ResponseResult(200, "广告获取成功");
        return result;
    }

    @GetMapping("get_advertisement_type")
    public ResponseResult get_advertisement_type(int page, int size) {

        ResponseResult result = new ResponseResult(200, "广告类型获取成功");
        return result;
    }
}
